package com.advertising.biz;

import java.util.List;

import com.advertising.model.CloneReleaseAddr;
import com.advertising.model.ReleaseAddr;
import com.tgyt.common.tools.page.Pagination;
import com.tgyt.framework.service.ServiceInterface;

public interface IReleaseAddrService extends ServiceInterface<ReleaseAddr> {
	public int getMaxOrder();

	public Pagination getPageList(ReleaseAddr release, int page, int rows,
			String sort, String order);

	public List<ReleaseAddr> getAll();


	/**
	 * @Title: convert
	 * @Description:将Release类型转换成CloneRelease
	 * @param @param release
	 * @param @return
	 * @param @throws Exception
	 * @return List<CloneRelease>
	 * @throws
	 */
	public List<CloneReleaseAddr> convert(List<ReleaseAddr> release) throws Exception;
	
	/**
	 * @Title: convert
	 * @Description:将CloneRelease类型转换成Release
	 * @param @param release
	 * @param @return
	 * @param @throws Exception
	 * @return List<CloneRelease>
	 * @throws
	 */
	public ReleaseAddr convert(CloneReleaseAddr release) throws Exception;
	
}
